﻿Imports System.ComponentModel

Public Class CLDS_YN_Prop_Converter
    Inherits StringConverter
    Private Shared _YNList As Collection
    Public Shared Property YNList() As Collection
        Get
            Return _YNList
        End Get
        Set(ByVal value As Collection)
            _YNList = value
        End Set
    End Property
    Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean
        Return True
    End Function
    Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean
        Return True
    End Function
    Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.ComponentModel.TypeConverter.StandardValuesCollection
        Return New StandardValuesCollection(_YNList)
    End Function

End Class
